<?php
namespace admin\controllers;

/**
 * 书籍管理
 */
class BookController extends BaseController
{
    public $modelClass = 'common\models\Book';
    public $searchModelClass = 'admin\models\BookSearch';

   public function actions()
   {
       $actions =  parent::actions();

//       unset($actions['create']);
//       unset($actions['update']);

       return $actions;
   }

    /**
     * 操作按钮
     * @return array
     */
    public function actionButtons()
    {
        return [
            [
                'label'   => $this->getPageTitle('create'),
                'url'     => ['create'],
                'options' => ['class' => 'btn green'],
            ],
        ];
    }
}
